package com.shanghaionstar.activity.webview.handler.picture;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 图片选择需要bean
 * 
 * @author panyi
 * 
 */
public class ImportImageItem extends ImageDetailBean implements Parcelable
{
    
    // public boolean canUpload = true;// 标示是否是已上传过 不可上传 默认可以上传
    /**
     * 是否是按钮
     */
    public boolean isImageButton = false;
    
    public String attach_id;
    
    public String timeStr;
    
    public String editStory;
    
    public ImportImageItem()
    {
    }
    
    @Override
    public int describeContents()
    {
        return 0;
    }
    
    @Override
    public void writeToParcel(Parcel dest, int flags)
    {
        super.writeToParcel(dest, flags);
        dest.writeByte(this.isImageButton ? (byte)1 : (byte)0);
        dest.writeString(this.attach_id);
        dest.writeString(this.timeStr);
        dest.writeString(this.editStory);
    }
    
    protected ImportImageItem(Parcel in)
    {
        super(in);
        this.isImageButton = in.readByte() != 0;
        this.attach_id = in.readString();
        this.timeStr = in.readString();
        this.editStory = in.readString();
    }
    
    public static final Creator<ImportImageItem> CREATOR = new Creator<ImportImageItem>()
    {
        @Override
        public ImportImageItem createFromParcel(Parcel source)
        {
            return new ImportImageItem(source);
        }
        
        @Override
        public ImportImageItem[] newArray(int size)
        {
            return new ImportImageItem[size];
        }
    };
}
